<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Ogre_glTF: Ogre_glTF::materialLoader Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Ogre_glTF
   </div>
   <div id="projectbrief">glTF import library for Ogre</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('class_ogre__gl_t_f_1_1material_loader.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="class_ogre__gl_t_f_1_1material_loader-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Ogre_glTF::materialLoader Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Load material information from a model inside Ogre, provide you a datablock to set to an Ogre::Item object.  
 <a href="class_ogre__gl_t_f_1_1material_loader.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_ogre__gl_t_f__material_loader_8hpp_source.html">Ogre_glTF_materialLoader.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a5418ac4d8e75b27f99580517426987f7"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ogre__gl_t_f_1_1material_loader.html#a5418ac4d8e75b27f99580517426987f7">materialLoader</a> (tinygltf::Model &amp;input, <a class="el" href="class_ogre__gl_t_f_1_1texture_importer.html">textureImporter</a> &amp;textureInterface)</td></tr>
<tr class="separator:a5418ac4d8e75b27f99580517426987f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8f4d260d5207de20de4905d8f0e9227f"><td class="memItemLeft" align="right" valign="top"><a id="a8f4d260d5207de20de4905d8f0e9227f"></a>
Ogre::HlmsDatablock *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_ogre__gl_t_f_1_1material_loader.html#a8f4d260d5207de20de4905d8f0e9227f">getDatablock</a> (size_t index=0) const</td></tr>
<tr class="memdesc:a8f4d260d5207de20de4905d8f0e9227f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the material (the HlmsDatablock) <br /></td></tr>
<tr class="separator:a8f4d260d5207de20de4905d8f0e9227f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a72059ee0ea733ec27aec8cb5ab2a1167"><td class="memItemLeft" align="right" valign="top"><a id="a72059ee0ea733ec27aec8cb5ab2a1167"></a>
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>getDatablockCount</b> () const</td></tr>
<tr class="separator:a72059ee0ea733ec27aec8cb5ab2a1167"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Load material information from a model inside Ogre, provide you a datablock to set to an Ogre::Item object. </p>

<p class="definition">Definition at line <a class="el" href="_ogre__gl_t_f__material_loader_8hpp_source.html#l00013">13</a> of file <a class="el" href="_ogre__gl_t_f__material_loader_8hpp_source.html">Ogre_glTF_materialLoader.hpp</a>.</p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a5418ac4d8e75b27f99580517426987f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5418ac4d8e75b27f99580517426987f7">&#9670;&nbsp;</a></span>materialLoader()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">materialLoader::materialLoader </td>
          <td>(</td>
          <td class="paramtype">tinygltf::Model &amp;&#160;</td>
          <td class="paramname"><em>input</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_ogre__gl_t_f_1_1texture_importer.html">textureImporter</a> &amp;&#160;</td>
          <td class="paramname"><em>textureInterface</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Construct the material loader </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">input</td><td>model to load material from </td></tr>
    <tr><td class="paramname">textureInterface</td><td>the texture importer to get Ogre texture from </td></tr>
  </table>
  </dd>
</dl>

<p class="definition">Definition at line <a class="el" href="_ogre__gl_t_f__material_loader_8cpp_source.html#l00130">130</a> of file <a class="el" href="_ogre__gl_t_f__material_loader_8cpp_source.html">Ogre_glTF_materialLoader.cpp</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>C:/YbalridSoftware/AnnwvynSDK64/Ogre_glTF/src/private_headers/<a class="el" href="_ogre__gl_t_f__material_loader_8hpp_source.html">Ogre_glTF_materialLoader.hpp</a></li>
<li>C:/YbalridSoftware/AnnwvynSDK64/Ogre_glTF/src/<a class="el" href="_ogre__gl_t_f__material_loader_8cpp_source.html">Ogre_glTF_materialLoader.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>Ogre_glTF</b></li><li class="navelem"><a class="el" href="class_ogre__gl_t_f_1_1material_loader.html">materialLoader</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.14 </li>
  </ul>
</div>
</body>
</html>
